<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //后端传给前端一个大于数值最大值的id，前端该如何得到它并且不失真呢？
        let jsonstr = `
    {
        "id":"9007199254740993",
        "list":[]
    }
`
        //两种方式：
        //1. 后端返回字符串
        console.log(JSON.parse(jsonstr).id) //9007199254740993
//2. 引入一个模块 json-bigint，可去github上找..

    </script>
</body>

</html>